package com.coderman.controller;

import com.coderman.core.ConstantItem;
import com.coderman.core.ConstantService;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author coderman
 * @Title: 常量获取
 * @Description: TOD
 * @date 2022/1/25 20:28
 */
@RestController
public class ConstController {


    @GetMapping(value = "/const/all")
    public Map<String, List<ConstantItem>> getAllConst() {
        return ConstantService.getAllConst();
    }


    @PostMapping(value = "/getAll")
    public Map<String, String> getAll(@RequestParam String name) {
        System.out.println("name:" + name);
        return new HashMap<>(1);
    }
}
